<div id="blog" class="blog" ng-controller="blog">
    <section class="blogInfo">
        <div>
            <h4>《{{blogInfo.blog.title}}》 </h4>
            <!--<name>{{blogInfo.name}}</name>-->
            <article></article>
            <a ng-show="name" ng-click="deleteBlog(blogInfo._id)" class="delete">删除 </a>
            <a ng-show="name" ng-click="amendBlog(blogInfo._id)" class="edit"> 编辑</a>
        </div>
    </section>
    <section class="comment">
        <form name="form" ng-submit="addComment(blogInfo._id)">
            <textarea ng-model="message" placeholder="谈谈你的看法" maxlength="100" required id="" cols="30" rows="2" style="resize:none"></textarea>
            <input type="submit" value="评论" style="background-color:#0F88EB ">
        </form>
    </section>
    <section class="answer">
        <div ng-show="blogInfo.answers">
            <ul>
                <li ng-repeat="li in blogInfo.answers">
                    <name>{{li.name}}:</name> <span>回复了你:</span>
                    <p>{{li.comment}}</p>
                    <time style="color: grey;font-size: 12px">{{li.time.day}} {{li.time.minute}} </time>
                    <a class="delete" ng-show="name" ng-click="delComment(blogInfo._id, li.commentId)">删除</a><br>
                </li>
            </ul>
        </div>
    </section>
</div>